package com.zj.open.wechat.service.processor;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import com.alibaba.fastjson.JSON;
import com.zj.open.wechat.dto.AbstractMessage;

@Component
public class DefaultMessageProcessor extends MessageProcessor {
    private Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    public void process(AbstractMessage message) {
        logger.info(JSON.toJSONString(message));
    }
}